90512: Function test for xfi:relationship-link-attribute

Documentation

Tests of function xfi:relationship-link-attribute($relationship as xfi:relationship.type,$attribute as xs:qname) as xs:anyType? Depends on xfi:concept-relationships function in order to provide the arc for testing this function.

Owners

Name Affiliation Email Start End
Herm Fischer UBMatrix / Mark V Systems fischer@markv.com 12-12-2008 at 00:00:00

References

http://www.xbrl.org/Specification/XF-PWD-2006-12-07.htm#_Toc152670666

Test Case Variations


V-01 Generic relationship arc A->B link attribute

Documentation

Inputs

  • schema: test.xsd (DTS Discovery starting point) (ID=V01)
  • Function Call: xfi:relationship-link-attribute( xfi:concept-relationships( QName('http://abc.com/test','A'), 'http://abc.com/role/test-link-role', 'http://abc.com/arcrole/test-arc-role', 'descendant', xs:nonNegativeInteger(1)), QName('http://abc.com/test','testLinkDate') )

    (against file V01)

Outputs

  • Result test: count($result) eq 1 and $result[1] instance of xs:date and $result[1] eq xs:date("2012-12-21")

V-02 Generic relationship arc B->C link's role attribute

Documentation

Inputs

  • schema: test.xsd (DTS Discovery starting point) (ID=V02)
  • Function Call: xfi:relationship-link-attribute( xfi:concept-relationships( QName('http://abc.com/test','B'), 'http://abc.com/role/test-link-role', 'http://abc.com/arcrole/test-arc-role', 'descendant', xs:nonNegativeInteger(1)), QName('http://www.w3.org/1999/xlink','role') )

    (against file V02)

Outputs

  • Result test: count($result) eq 1 and $result[1] instance of xs:anyURI and $result[1] eq xs:anyURI("http://abc.com/role/test-link-role")

V-03 Generic relationship arc A->B nonexisting link attribute

Documentation

Inputs

  • schema: test.xsd (DTS Discovery starting point) (ID=V03)
  • Function Call: xfi:relationship-link-attribute( xfi:concept-relationships( QName('http://abc.com/test','A'), 'http://abc.com/role/test-link-role', 'http://abc.com/arcrole/test-arc-role', 'descendant', xs:nonNegativeInteger(1)), QName('','foo') )

    (against file V03)

Outputs

  • Result test: empty($result)

Revisions

Name On Details
Herm Fischer 16-09-2010 at 00:00:00 Created the test case in original form.